//
//  PPFoundUserModel.m
//  pickpic
//
//  Created by Jinxiao on 8/28/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import "PPFoundUserModel.h"

@implementation PPFoundUserModel

- (NSString *)avatarURLString {
    if([self.avatarKey length] == 0 || [self.avatarHost length] == 0) {
        return nil;
    }

    if([self.avatarKey hasPrefix:@"http:"]) {
        return self.avatarKey;
    }

    return [NSString stringWithFormat:@"%@%@", self.avatarHost, self.avatarKey];
}

@end
